//
//  GoodsCell.m
//  SameWorld(merchant)
//
//  Created by 李小朋 on 2017/3/29.
//  Copyright © 2017年 杨旭. All rights reserved.
//

#import "GoodsCell.h"
#import "GoodsManageModel.h"
#import <UIImageView+WebCache.h>
@interface GoodsCell ()

// ** 商品图片*/
@property (weak, nonatomic) IBOutlet UIImageView *pictureImageView;
// ** 标题*/
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
// ** 创建时间*/
@property (weak, nonatomic) IBOutlet UILabel *sjLabel;
// ** 结束时间*/
@property (weak, nonatomic) IBOutlet UILabel *end_sjLabel;

@end

@implementation GoodsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    

}

- (void)setCellUpDataWithGoodsManageModel:(GoodsManageModel *)model {
    
    // 商品图片
    NSString *urlStr = [NSString stringWithFormat:@"%@%@",url_Base,model.app_home_img];
    [self.pictureImageView sd_setImageWithURL:[NSURL URLWithString:urlStr] placeholderImage:[UIImage imageNamed:@"占位图-1"]];
    
    // 标题
    self.titleLabel.text = model.title;
    
    // 创建时间
    self.sjLabel.text = model.sj;
    
    // 结束时间
    self.end_sjLabel.text = model.end_sj;
    
}


@end
